package com.qzsoft.zhjd.server.modules.ludong.exp.service.impl;

import com.qzsoft.zhjd.server.modules.ludong.exp.entity.CollectExpPenetrationEntity;
import com.qzsoft.zhjd.server.modules.ludong.exp.entity.CollectLaboratoryDeviceEntity;
import com.qzsoft.zhjd.server.modules.ludong.exp.mapper.CollectExpPenetrationMapper;
import com.qzsoft.zhjd.server.modules.ludong.exp.mapper.CollectLaboratoryDeviceMapper;
import com.qzsoft.zhjd.server.modules.ludong.exp.service.CollectExpPenetrationService;
import com.qzsoft.zhjd.server.modules.ludong.exp.service.CollectLaboratoryDeviceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service("expPenetrationService")
public class CollectExpPenetrationServiceImpl extends ServiceImpl<CollectExpPenetrationMapper, CollectExpPenetrationEntity> implements CollectExpPenetrationService {

    /**
     * 功能描述: 先删除后添加
     * @param collectExpPenetrationEntity 实体类
     * @return : void
     * @author : liugf
     * @date : 2020/6/10 20:39
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void insertAndRemoveData(CollectExpPenetrationEntity collectExpPenetrationEntity) {
        removeById(collectExpPenetrationEntity.getId());
        save(collectExpPenetrationEntity);
    }

    /**
     * @ClassName: LaboratoryDeviceServiceImpl
     * @Description: 实验室设备业务接口实现
     * @author linhuawei
     * @since 2021-05-17
     */
    @Service
    public static class CollectLaboratoryDeviceServiceImpl extends ServiceImpl<CollectLaboratoryDeviceMapper, CollectLaboratoryDeviceEntity>
            implements CollectLaboratoryDeviceService {

    }
}
